using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace SRW.SetInfo
{
   class SetProblemsino
   {
      public static SqlCommand Set_Problemsino_Data(SqlCommand cmd, Problemsino mProblemsino,bool CheckPk)
      {
         
         if (!(string.IsNullOrEmpty(mProblemsino.pkID.ToString())))
         {
            if (CheckPk)
               cmd.Parameters.AddWithValue("@pkID", mProblemsino.pkID);
         }
         if (!(string.IsNullOrEmpty(mProblemsino.problemID.ToString())))
         {
         cmd.Parameters.AddWithValue("@problemID", mProblemsino.problemID);
         }
         if (!(string.IsNullOrEmpty(mProblemsino.sinoID.ToString())))
         {
         cmd.Parameters.AddWithValue("@sinoID", mProblemsino.sinoID);
         }
         return cmd;
      }
   }
}
